<%@ page import="java.util.*" language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>标签管理系统 - 首页</title>
    <meta name="keywords" content="jsp;servlet;tomcat;管理系统" />
		<meta name="description" content="图书信息管理,顽石科技提供项目技术支持" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <!-- basic styles -->
    <link href="${basePath}/ACE/css/bootstrap.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="${basePath}/ACE/css/font-awesome.min.css" />
    <!--[if IE 7]>
		  <link rel="stylesheet" href="${basePath}/ACE/css/font-awesome-ie7.min.css" />
		<![endif]-->
    <!-- page specific plugin styles -->
    <!-- fonts -->
    <!-- ace styles -->
    <link rel="stylesheet" href="${basePath}/ACE/css/ace.min.css" />
    <link rel="stylesheet" href="${basePath}/ACE/css/ace-rtl.min.css" />
    <link rel="stylesheet" href="${basePath}/ACE/css/ace-skins.min.css" />
    <!--[if lte IE 8]>
		  <link rel="stylesheet" href="${basePath}/ACE/css/ace-ie.min.css" />
		<![endif]-->
    <!-- inline styles related to this page -->
    <!-- ace settings handler -->
    <script src="${basePath}/ACE/js/ace-extra.min.js"></script>
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
		<script src="${basePath}/ACE/js/html5shiv.js"></script>
		<script src="${basePath}/ACE/js/respond.min.js"></script>
		<![endif]-->

    <style type="text/css">
        .navbox ul{list-style: none;display:table;}
        .navbox ul li{float: left;margin-top: 12px;margin-right:20px;}
        .navbox ul li a
        {
            display:block;
            padding-left: 20px;
            width: 230px;
            height: 100px;
            line-height: 100px;
            color: #fff;
            font-family: "Microsoft YaHei","微软雅黑","黑体";
            font-size: 30px;
            text-decoration:none;
            text-align:center;
        }
        .navbox ul li a:hover{background-color:#E56690;}
    </style>

<script type="text/javascript">	
	document.form[0];	
	Math.floor(Math.random()*100)+1 ;  //1-100
	
</script>

</head>
<body>
    <div class="main-container" id="main-container">
        <div class="main-container-inner">
            <div class="breadcrumbs" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li><i class="icon-home home-icon"></i><a href="welcome.htm">首页</a> </li>
                    <li class="active">欢迎页</li>
                </ul>
                <!-- .breadcrumb -->
            </div>
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="page-header">
                            <h1>常用操作</h1>
                        </div>
                        <div class="navbox">
                            <ul>
                                <li><a href="${basePath }/advice/list.do" style="background-color:#FE2485;">公告信息列表</a></li>
                                <li><a href="${basePath }/employer/list.do" style="background-color:#BB3500;">员工列表</a></li>
                                <li><a href="${basePath }/book/list.do" style="background-color:#27AFFB;">图书列表</a></li>
                                <li><a href="${basePath }/book/add.do" style="background-color:#0066FF;">新增图书</a></li>
                                <li><a href="${basePath }/employer/add.do" style="background-color:#00FF99;">新增员工</a></li>
                                <li><a href="${basePath }/resetPass.do" style="background-color:#456562;">修改密码</a></li>
                            </ul>
                        </div>
                        
                        <div class="container">
                           <!-- 为 ECharts 准备一个具备大小（宽高）的 DOM -->
                           <div id="main" style="width: 600px;height:400px;"></div>
                        </div>
                    </div>
                    <!-- /.row -->
                </div>
                <!-- /.page-content -->
            </div>
            <!-- /.main-container-inner -->
            <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse"><i class="icon-double-angle-up icon-only bigger-110">
            </i></a>
        </div>
    </div>
        <!-- /.main-container -->
        <script src='${basePath}/ACE/js/jquery-2.0.3.min.js' type="text/javascript"></script>
        <script type="text/javascript">
            if ("ontouchend" in document) document.write("<script src='${basePath}/ACE/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
        </script>
        <script src="${basePath}/ACE/js/bootstrap.min.js" type="text/javascript"></script>
        <script src="${basePath}/ACE/js/typeahead-bs2.min.js" type="text/javascript"></script>
        <script src="${basePath}/ACE/js/ace-elements.min.js" type="text/javascript"></script>
        <script src="${basePath}/ACE/js/ace.min.js" type="text/javascript"></script>
        <script type="text/javascript" src="${basePath}/data.js"></script>
        <script type="text/javascript" src="${basePath}/js/echarts.js"></script>
        
        <script type="text/javascript">
            var sourceColor;
            $(function () {
                $(".navbox a").hover(function () {
                    sourceColor = $(this).css("background-color");
                    $(this).css("background-color", "#003B5A");
                }, function () {
                    $(this).css("background-color", sourceColor);
                });
                
                
                // 基于准备好的dom，初始化echarts实例
                var myChart = echarts.init($("#main")[0]);

                // 指定图表的配置项和数据
                var option = {
                    title: {
                        text: '当月图书借阅信息表'
                    },
                    tooltip: {},
                    legend: {
                        data:['借阅量']
                    },
                    xAxis: {
                        data: ["文学","计算机科学","社会科学","历史","哲学","物理学"]
                    },
                    yAxis: {},
                    series: [{
                        name: '借阅量',
                        type: 'bar',
                        data: [5, 20, 36, 10, 10, 20]
                    }]
                };
                // 使用刚指定的配置项和数据显示图表。
                myChart.setOption(option);                
            });
            
        </script>
</body>
</html>
